// 从rc-pagination复制出来修改的，需要调整下结构
// 部分调整后
.rc-pagination {
  font-size: 12px;
  user-select: none;
  padding: 0;
  margin-top: $space-of-segments;
  margin-bottom: $space-of-segments;
  & > li {
    outline: 0;
    list-style: none;
  }
  &:after {
    content: " ";
    display: block;
    height: 0;
    clear: both;
    overflow: hidden;
    visibility: hidden;
  }
}
.rc-pagination-total-text {
  display: inline-block;
  height: 30px;
  line-height: 28px;
  list-style: none;
  padding: 0;
  margin: 0 8px 0 0;
}
.rc-pagination-item {
  display: inline-block;
  cursor: pointer;
  border-radius: 0;
  min-width: 28px;
  height: 30px;
  line-height: 28px;
  text-align: center;
  list-style: none;
  border: 1px solid #d8d8d8;
  background-color: #fff;
  margin-right: 5px;
  a {
    text-decoration: none;
    color: #666;
  }
  &:hover {
    border-color: $primary-color;
    a {
      color: $primary-color;
    }
  }
}
.rc-pagination-item-active {
  background-color: $primary-color;
  border-color: $primary-color;
  a {
    color: #fff;
  }
  &:hover {
    a {
      color: #fff;
    }
  }
}
.rc-pagination-jump-prev:after,
.rc-pagination-jump-next:after {
  content: "•••";
  color: #666;
  display: block;
  letter-spacing: 2px;
  font-size: 12px;
  margin-top: 1px;
}
.rc-pagination-jump-prev:hover:after,
.rc-pagination-jump-next:hover:after {
  color: $primary-color;
}
.rc-pagination-jump-prev {
  &:hover {
    &:after {
      content: "«";
    }
  }
}
.rc-pagination-jump-next {
  &:hover {
    &:after {
      content: "»";
    }
  }
}
.rc-pagination-prev,
.rc-pagination-jump-prev,
.rc-pagination-jump-next {
  margin-right: 5px;
}
.rc-pagination-prev,
.rc-pagination-next,
.rc-pagination-jump-prev,
.rc-pagination-jump-next {
  display: inline-block;
  cursor: pointer;
  font-size: 10px;
  border-radius: 0;
  list-style: none;
  min-width: 28px;
  height: 30px;
  line-height: 28px;
  text-align: center;
}
.rc-pagination-prev {
  a {
    &:after {
      content: "< 上一页";
      display: block;
    }
  }
}
.rc-pagination-next {
  a {
    &:after {
      content: "下一页 >";
      display: block;
    }
  }
}
.rc-pagination-prev,
.rc-pagination-next {
  width: 68px;
  border-radius: 0;
  border: 1px solid #d8d8d8;
  font-size: 12px;
  line-height: 30px;
  a {
    color: $text-color;
}
&:hover {
  color: $primary-color;
  border-color: $primary-color;
  &.rc-pagination-disabled {
      border-color: #d8d8d8;
}
   a {
   color: $primary-color;
    }
  }
}
.rc-pagination-disabled {
  //cursor: not-allowed;
  pointer-events: none;
  a {
    color: #ccc;
  }
}
.rc-pagination-options {
  display: inline-block;
  margin-left: 15px;
}
.rc-pagination-options-size-changer {
  display: inline-block;
  width: 80px;
}
.rc-pagination-options-quick-jumper {
  display: inline-block;
  height: 30px;
  line-height: 28px;
  input {
    margin: 0 5px;
    // box-sizing: border-box;
    background-color: #fff;
    border-radius: 0;
    border: 1px solid #d8d8d8;
    outline: 0;
    padding: 0;
    width: 28px;
    text-align: center;
    height: 30px;
    &:hover {
      border-color: $primary-color;
    }
  }
  button {
    margin-left: 5px;
  }
}
.rc-pagination-simple .rc-pagination-prev,
.rc-pagination-simple .rc-pagination-next {
  border: none;
  height: 30px;
  line-height: 28px;
  margin: 0;
  font-size: 12px;
}
.rc-pagination-simple {
  .rc-pagination-simple-pager {
    display: inline-block;
    margin-right: 5px;
    list-style: none;
    .rc-pagination-slash {
      margin: 0 10px;
    }
    input {
      margin: 0 8px;
      box-sizing: border-box;
      background-color: #fff;
      border-radius: 6px;
      border: 1px solid #d8d8d8;
      outline: none;
      padding: 5px 8px;
      min-height: 20px;
      &:hover {
        border-color: #2db7f5;
      }
    }
    button {
      display: inline-block;
      margin: 0 8px;
      font-weight: 500;
      text-align: center;
      -ms-touch-action: manipulation;
      touch-action: manipulation;
      cursor: pointer;
      background-image: none;
      border: 1px solid transparent;
      white-space: nowrap;
      padding: 0 8px;
      font-size: 12px;
      border-radius: 6px;
      height: 26px;
      user-select: none;
      transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
      position: relative;
      color: rgba(0, 0, 0, 0.65);
      background-color: #fff;
      border-color: #d8d8d8;
    }
  }
}
.rc-pagination-simple .rc-pagination-simple-pager button:hover,
.rc-pagination-simple .rc-pagination-simple-pager button:active,
.rc-pagination-simple .rc-pagination-simple-pager button:focus {
  color: #2db7f5;
  background-color: #fff;
  border-color: #2db7f5;
}

@media only screen and (max-width: 1024px) {
  .rc-pagination-item-after-jump-prev,
  .rc-pagination-item-before-jump-next {
    display: none;
  }
}
